import { keyboard, Key, mouse, sleep } from '@nut-tree/nut-js';

export default async function scrollScreen() {
    // 打开企业微信（快捷键）：打开/隐藏主面板 Shift + Alt + S
    await keyboard.pressKey(Key.LeftShift, Key.LeftAlt, Key.S);
    await keyboard.releaseKey(Key.LeftShift, Key.LeftAlt, Key.S);

    await mouse.scrollUp(500);

    await sleep(1000);

    await mouse.scrollUp(500);

    await sleep(1000);

    await mouse.scrollUp(500);
}

scrollScreen();
